﻿<UserControl xmlns:input="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input"  
    x:Class="Silverlight.Navigation.Controls.NavigationToolbar"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:local="clr-namespace:Silverlight.Navigation.Controls"
    x:Name="NavigationToolbarControl" >
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Expander x:Name="NavExpander" Header="Navigation Toolbar" IsExpanded="True">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="70" />
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <Border Grid.Row="0" Grid.Column="1" Background="Transparent" Margin="2,2,2,2"
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="70" />
                            <ColumnDefinition Width="70" />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        
                        <Grid.RowDefinitions>
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                        </Grid.RowDefinitions>

                        <Border Background="Transparent" Margin="2,2,2,2" Grid.Row="0" Grid.Column="0"
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                            <Button x:Name="BackButton" Content="Back"  IsEnabled="False" Click="BackButton_Click" Background="Transparent" BorderBrush="Transparent"></Button>
                        </Border>
                        
                        <Border Background="Transparent" Margin="2,2,2,2" Grid.Row="0" Grid.Column="1"
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                            <Button x:Name="ForwardButton" Content="Forward" IsEnabled="False" Click="ForwardButton_Click"  Background="Transparent" BorderBrush="Transparent"></Button>
                        </Border>

                        <Border Background="Transparent" Margin="2,2,2,2" Grid.Row="0" Grid.Column="2"
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                            <ComboBox x:Name="AddressBox" SelectionChanged="AddressBox_SelectionChanged" ></ComboBox>
                        </Border>
                        
                        <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
                            <Border Background="Transparent" Margin="2,2,2,2" 
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                                <Button x:Name="HistoryButton" Content="History" Click="HistoryButton_Click"  Background="Transparent" BorderBrush="Transparent"></Button>
                            </Border>

                            <Border Background="Transparent" Margin="2,2,2,2" 
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                                <Button x:Name="FavoritesButton" Content="Favorites" Click="FavoritesButton_Click"  Background="Transparent" BorderBrush="Transparent"></Button>  
                            </Border>
                            
                            <Border Background="Transparent" Margin="2,2,2,2" 
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                                <Button x:Name="AddToFavoritesButton" Content="Add to Favorites" Click="AddToFavoritesButton_Click"  Background="Transparent" BorderBrush="Transparent"></Button>  
                            </Border>
                            
                            <Border Background="Transparent" Margin="2,2,2,2" 
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                                <Button x:Name="SetAsHomePageButton" Content="Set as Home Page" Click="SetAsHomePageButton_Click"  Background="Transparent" BorderBrush="Transparent"></Button> 
                            </Border>
                            
                            <Border Background="Transparent" Margin="2,2,2,2" 
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
                                <Button x:Name="UseDefaultHomePage" Content="Use Default Home Page" Click="UseDefaultHomePage_Click"  Background="Transparent" BorderBrush="Transparent"></Button>  
                            </Border>
                        </StackPanel>
                        
                    </Grid>
                </Border>

            </Grid>
        </controls:Expander>
    </Grid>
</UserControl>
